<%@page import="java.net.URLDecoder"%>
<%@page pageEncoding="UTF-8"%>
<%
	Cookie[] cookies = request.getCookies();
	String user = "";
	String date = "";
	if (cookies != null)
	{
		for (int i = 0; i < cookies.length; i++)
		{
			if (cookies[i].getName().equals("mrCookie"))
			{
				user = URLDecoder.decode(cookies[i].getValue().split("#")[0]);
				date = cookies[i].getValue().split("#")[1];
			}
		}
	}
%>
<footer>
	<div style="align:center;width:780px;height:102px;background-image:url(Img/bj0.jpg);id:werw">
		<div align="center">
		<!-- 	<a href="index.jsp">www.localhost.com 本地网站</a> -->
		</div>
		<div align="right">
			<!-- <h3><a href="index.jsp">www.localhost.com 本地网站</a></h3> -->
			<a href="baiduMapTest.jsp">[ Map ]</a>
			<%
			if ("".equals(user) && "".equals(date))
			{
			%>
			游客您好，欢迎您初次光临！
			<a href="login.jsp">[ 登录 ]</a>
			<a href="signin.jsp">[ 注册 ]</a>
			<%
			}
			else
			{
			%>
			<%=user %>
			<a href="logout.jsp">[ 注销 ]</a>
			<%
			}
			%>
		</div>
	</div>
</footer>